package com.tsing.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author TheTsing
 * @version 1.0
 * @date 2021/11/8 14:11
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-HYSTRIX-SERVICE", fallback = OrderFallbackService.class)
public interface OrderService {

    @GetMapping("/getAll/{id}")
    List<Object> get(@PathVariable("id") String id);

    @GetMapping("/timeout")
    String timeout();

}
